<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>注册</title>
    <link rel="stylesheet" href="/static/css/register.css" >
    <script src='/static/js/register.js'></script>
    <!-- Jquary核心文件 -->
    <script src="/static/js/jquery-1.4.min.js"></script>
</head>
<body>
    <div id="main">

        <div id="avatar">
        </div>

        <form method="POST" action="">
        <div id="account">
            <div class="input-box"><input id="uname" name="username" type="text" placeholder=" 请输入账号"></div>
            <div class="input-box"><input id="upass" name="password" type="password" placeholder=" 请输入密码"></div>
        </div>
        <div class="select">
            <select class="form-control">
            <option value="user">用户注册</option>
            <option value="admin">管理员注册</option>
            </select>
        </div>
        <!-- 该模块用来获取js文件的值 -->
        <div style="display: none;">
            <input id='isError' type="text" name="isError" value="" />
        </div>
        <div id="error-box">
            <!-- 该input标签用于获取js传入的错误信息并发送给后端 -->
            <input id="error-msg" name="error-msg" type="hidden" value="" />
            <span>{{ login_error_msg }}</span>
        </div>

        <button type="submit" class="regist" onclick="fnLogin()">注册</button></form>
        <a href="../"><button class="login">返回登录</button></a>

        <div id="footer"></div>
</body>
</html>